# encoding: UTF-8

import XmlParser
import importlib
import JavaGen
import HtmlGen
import sys

if __name__ == '__main__':
    reload(sys)
    sys.setdefaultencoding('utf8')

    confModule  = importlib.import_module('pmConf')
    conf        = confModule.conf
    packages    = XmlParser.parse(conf['xmlDir'])
    JavaGen.gen(packages, conf)
    HtmlGen.gen(packages, conf)
